wrap
Creates a new ValidationResult of type T wrapping the new value with the error(if any) from the receiver ValdiationResult (of any type, does not need to match T)
Useful if the Validation is performed on an incompatible type, and the error needs to be passed along with type T.
Return
ValidationResult with the state and error of the previous result with the newly supplied Type and Value
Author
fzzyhmstrs
Since
0.2.0
Parameters
T
type of result
new Val
the new value to wrap in the existing result